package com.yc.supermarket.mapper;

import com.yc.supermarket.entity.Sales;
import com.yc.supermarket.entity.ShoppingCart;
import com.yc.supermarket.entity.Transaction;

import java.util.List;
import java.util.Map;

public interface TransactionMapper {
    int add(Transaction transaction);

    int addSales(Sales sales);

    int updateCart(ShoppingCart shoppingCart);
    void deleteCartItem();
    List<Transaction> findByStatus(int status);

    List<Transaction> findByTrem(Map<String,Object> map);
    List<Sales> findByUserId(Integer userId);
    boolean modifyStatus(String transactionId);
}
